Home > biomechZoo > Toolbox > Support Functions > subdir.m

subdir

PURPOSE ^

SUBDIR lists (recursive) all subfolders and files under given folder

SYNOPSIS ^

function [sub,fls] = subdir(CurrPath)

DESCRIPTION ^

 SUBDIR  lists (recursive) all subfolders and files under given folder
    
 [sub,fls] = subdir(CurrPath)

 ARGUMENTS
    CurrPath     ...   pth as outputted from uigetfolder

 RETURNS
    SUB       ...  path of each subfolder as string array
    FLS       ...  filenames as string array

 NOTES
   use sort([F{:}]) to get sorted list of all filenames.
   See also DIR, CD

 Created by Elmar Tarajan [Elmar.Tarajan@Mathworks.de]  07-Dez-2004


 updated by phil dixon october 2011
  - works with  MAC platorm

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sun 10-Mar-2024 22:39:06 by m2html © 2005